export interface Card {
  logo: string; // 卡片 logo 地址
  title: string; // 标题
  src: string; // 地址
  tag: Category; // 用于分类筛选
  desc: string; // 描述
  source: string; // 来源
  updateTime: string; // 更新时间
  status: CardStatus; // 状态（如“可用”）
}

export enum CardStatus {
  all = "all",
  available = "available",
  invalid = "invalid",
  waiting = "waiting",
}
export const CardStatusMap = {
  [CardStatus.all]: "综合排序",
  [CardStatus.available]: "可用",
  [CardStatus.invalid]: "失效",
  [CardStatus.waiting]: "等待",
};

export const CardStatusColorMap = {
  [CardStatus.available]: "#d4edda",
  [CardStatus.invalid]: "#c33c31",
  [CardStatus.waiting]: "#fcf5f5",
};

export enum Category {
  all = "all",
  openSource = "openSource",
  internetAssets = "internetAssets",
  archive = "archive",
  business = "business",
}
export const CategoryMap = {
  [Category.all]: "全部",
  [Category.openSource]: "开源数据",
  [Category.internetAssets]: "网络资产",
  [Category.archive]: "信息档案",
  [Category.business]: "组织与商业信息",
};

export interface ITabs {
  key: string;
  label: string;
}
